package com.ggb.smartstudy.entity;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.NonNull;

/**
 * @author gefangjie
 */
@Data
public class CourseCategory {
    @NonNull
    private Integer id;
    @NotBlank(message = "课程分类名不能为空")
    @Size(min = 1, max = 20, message = "课程分类名长度应在6到20个字符之间")
    private String categoryName;
    @Size(max = 255, message = "课程分类描述长度不能超过255个字符")
    private String description;
}
